package game.data;

class GameData {
	private static var __instance:GameData;

	public static function getInstance() {
		if (__instance == null) {
			__instance = new GameData();
		}
		return __instance;
	}

	public function new() {}

	/**
	 * 是否已经解锁了当前角色
	 * @param id 
	 * @return Bool
	 */
	public function isUnlockRole(id:String):Bool {
		var data = XlsData.roles.getDataByRoleid(id);
		return data.open == "1";
	}
}
